//
//  Separtor.swift
//  JiaoZiTaxi
//
//  Created by Hu Gang on 2022/10/12.
//

import SwiftUI

struct Separtor: View {
  let color: Color
  var body: some View {
    Divider()
      .overlay(color)
      .padding(.zero)
  }

  init(color: Color = Color("separator")) {
    self.color = color
  }
}

struct Separtor_Previews: PreviewProvider {
  static var previews: some View {
    Separtor()
  }
}
